<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('company/versions')}">权限版本管理</a></li>

			<li  class="active"><a href="javascript:;"><php>if(isset($action)) { echo '编辑版本';}else{echo '添加版本';}</php></a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('company/versions_add')}">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>版本名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="name" placeholder="请填写版本名称" required value="{$data.name|default=''}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-app" class="col-sm-2 control-label"><span class="form-required">*</span>价格</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="input-price" name="price" placeholder="请填写价格" value="{$data.price|default=0}" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>备注</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-remark" name="remark" placeholder="备注信息" value="{$data.remark|default=''}">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<?php if(empty($action)) { ?>
					<button type="submit" class="btn btn-primary js-ajax-submit" >{:lang('ADD')}</button>
					<?php } else {?>
					<button type="submit" class="btn btn-primary js-ajax-submit" name="edit" value="false">{:lang('EDIT')}</button>
					<input type="hidden" name="id" value="{$data.id|default=''}">
					<?php } ?>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>